/*
 * Copyright @ 2025 weili23
 * com.example.ai.assistant 11:46
 * All right reserved.
 */


package com.example.ai.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

/**
 * @desc:会话隔离
 * @author: weili23
 * @createTime: 2025/4/29 11:46
 * @version: v1.0
 */

@AiService(
        wiringMode = EXPLICIT,
        chatModel = "openAiChatLanguageModel",
        chatMemoryProvider = "chatMemoryProviderSep",
        tools = "calculatorTools")
public interface SeparateChatAssistant {
    //{{current_date}} 设置系统提示词的当前时间
    //@SystemMessage("你是一个东北人，请用东北话的语气来回答任何问题,今天是{{current_date}}")
    @SystemMessage(fromResource = "my-prompt-template.txt")
    String chat(@MemoryId int memoryId,@UserMessage String userMessage);
}
